import request from '@/utils/request'

// 线索管理-线索手动添加
export function apiCustomerAdd(data) {
  return request({
    url: '/cus/customer_add/',
    method: 'post',
    data
  })
}
// 线索管理-客户申领
export function apiCustomerApply(data) {
  return request({
    url: '/cus/customer_apply/',
    method: 'post',
    data
  })
}
// 线索管理-客户手动分配给员工
export function apiCustomerAssignMany(data) {
  return request({
    url: '/cus/customer_assign_many/',
    method: 'post',
    data
  })
}
// 线索管理-部门批注客户统计-不分页
export function apiCustomerDeptCount(data) {
  return request({
    url: '/cus/customer_dept_count/',
    method: 'post',
    data
  })
}
// 线索管理-客户详情
export function apiCustomerDetail(data) {
  return request({
    url: '/cus/customer_detail/',
    method: 'post',
    data
  })
}
// 线索管理-客户信息编辑
export function apiCustomerEdit(data) {
  return request({
    url: '/cus/customer_edit/',
    method: 'post',
    data
  })
}

// 线索管理-客户-继续跟进
export function apiCustomerFollow(data) {
  return request({
    url: '/cus/customer_follow/',
    method: 'post',
    data
  })
}
// 线索管理-客户永久踢出
export function apiCustomerForeverOut(data) {
  return request({
    url: '/cus/customer_forever_out/',
    method: 'post',
    data
  })
}
// 线索管理-员工手动踢出多条
export function apiCustomerKickMany(data) {
  return request({
    url: '/cus/customer_kick_many/',
    method: 'post',
    data
  })
}
// 线索管理-客户暂时踢出-加入公海
export function apiCustomerKickOut(data) {
  return request({
    url: '/cus/customer_kick_out/',
    method: 'post',
    data
  })
}
// 线索管理-个人标注记录展示-分页
export function apiCustomerMarkList(data) {
  return request({
    url: '/cus/customer_mark_list/',
    method: 'post',
    data
  })
}
// 线索管理-被踢出客户记录-检索
export function apiCustomerOutList(data) {
  return request({
    url: '/cus/customer_out_list/',
    method: 'post',
    data
  })
}
// 线索管理-合伙人添加
export function apiCustomerPartnerAdd(data) {
  return request({
    url: '/cus/customer_partner_add/',
    method: 'post',
    data
  })
}
// 线索管理-客户联系人添加
export function apiCustomerRelationAdd(data) {
  return request({
    url: '/cus/customer_relation_add/',
    method: 'post',
    data
  })
}
// 线索管理-线索列表
export function apiCustomeSearchList(data) {
  return request({
    url: '/cus/customer_search_list/',
    method: 'post',
    data
  })
}

// 线索管理-员工手动设置特权
export function apiCustomerSetSpec(data) {
  return request({
    url: '/cus/customer_set_spec/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-根据手机号获取地区
export function apiGetCityByPhone(data) {
  return request({
    url: '/cus/get_city_by_phone/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-行业分类下拉列表展示
export function apiSelectCate(data) {
  return request({
    url: '/cus/select_cate/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-城市下拉列表展示
export function apiSelectCity(data) {
  return request({
    url: '/cus/select_city/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-交易市场下拉
export function apiSelectMarket(data) {
  return request({
    url: '/cus/select_market/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-公司会员产品下拉
export function apiSelectPruduct(data) {
  return request({
    url: '/cus/select_pruduct/',
    method: 'post',
    data
  })
}
// 线索管理-下拉数据-客户来源下拉
export function apiSelectSource(data) {
  return request({
    url: '/cus/select_source/',
    method: 'post',
    data
  })
}

// 合伙人手机号唯一性校验
export function apiCustomerPhoneCheck(data) {
  return request({
    url: '/cus/customer_phone_check/',
    method: 'post',
    data
  })
}
